package com.ronghui.cash.service;

import com.ronghui.cash.dto.ReturnFenqiBillBean;
import com.ronghui.cash.entity.FenqiBill;
import com.baomidou.mybatisplus.service.IService;
import com.ronghui.cash.entity.Orders;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author wiki
 * @since 2017-12-04
 */
public interface OrdersService extends IService<Orders> {

    /**
     * 本月待还,返回转换后的ReturnFenqiBillBean的list(列表上用)
     *
     * @param userId
     * @return
     */
    List<ReturnFenqiBillBean> getCurrentFenqiBill(Long userId);

    /**
     * 全部待还，返回原始的FenqiBill的list(我的界面上用来算最近还款等)
     *
     * @param userId
     * @return
     */
    public List<FenqiBill> getMyAllFenqiBill(Long userId);
}
